package com.xd.pre.modules.tpshop.virtuaBean;

import lombok.Data;

import java.util.List;

@Data
public class GoodsCategory_virtual_forCategory {

    private int id;                //分类ID
    private String mobile_name;            //手机端显示的商品分类名
    private int parent_id;            //父菜单ID
    private String parentIdPath;    //一级分类ID到当前ID的路径(保留字段) // 家族图谱 id(本项目中定义最大3级标题！)   类似“0_1”格式的是一级标题, 类似“0_1_12”格式的是二级标题,类似“0_1_12_12”格式的是二级标题, 第二位永远表示一级标题的某个item(即：keyId)！
    private int level;                //菜单级别
    private String image;            //图片URL

//    GoodsCategory_virtual_forCategory parentCategory;	//当前GoodsCategory_virtual_forCategory对象自己： 即：当前GoodsCategory_virtual_forCategory对象的subCategory属性的 父级标题

    private List<GoodsCategory_virtual_forCategory> subCategory;        //子分类	if是三级标题它的值则为null:		三级标题 没有子标题list了！

    public GoodsCategory_virtual_forCategory() {
        super();
        // TODO Auto-generated constructor stub
    }

    public GoodsCategory_virtual_forCategory(int id, String mobile_name,
                                             int parent_id, String parentIdPath, int level, String image,
//			GoodsCategory_virtual_forCategory parentCategory,
                                             List<GoodsCategory_virtual_forCategory> subCategory) {
        super();
        this.id = id;
        this.mobile_name = mobile_name;
        this.parent_id = parent_id;
        this.parentIdPath = parentIdPath;
        this.level = level;
        this.image = image;
//		this.parentCategory = parentCategory;
        this.subCategory = subCategory;
    }


}
